<?php
if($lang==0){
	$sql= "select vi_name as name,url from tblmenu where section_id = 0";
}else{
	$sql= "select en_name as name,url from tblmenu where section_id = 0";
}
$rs = mysql_query($sql);
?>
<div id="sub_menu">
<?php
	while($menu = mysql_fetch_object($rs)){
		if($menu->url ==""){
			echo "<a href='/home'>".$menu->name."</a>";
		}else{
			echo "<a href='".$menu->url."'>".$menu->name."</a>";
		}
	
	}
?>
</div>